﻿@using DIS.Infrastructure.Entities.Entity;
@{
    ViewBag.Title = "LongFeeSummaryDetail";
    Layout = "~/Views/Shared/_Layout.cshtml";
    List<LongHaulDetail> list = ViewBag.data;
    Project project = ViewBag.project;
    FinancialPeriod fp = ViewBag.financialPeriod;
    LongHaul longfee = ViewBag.longfee;
    
}

<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#D6D6D6">
    <tr>
        <td height="19" background="/content/img/tbg.gif" bgcolor="#E7E7E7">
            <table width="96%" border="0" cellspacing="1" cellpadding="1">
                <tr>
                    <td style="padding-left: 10px;">
                        <b><strong>在途费明细</strong></b>
                    </td>
                    <td align="right">
                        <b><strong><a href="/SummaryData/LongFeeSummary">在途费列表</a></strong></b>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td align="center" valign="top" bgcolor="#FFFFFF">
            
            <table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#D6D6D6">
                <tr height="30px">
                    <td colspan="5" align="left">
                        <strong>在途费用记录</strong>&nbsp;&nbsp;
                        @{
                            if(fp!=null)
                            {
                                <span>@(fp.Year)年@(fp.Month)月(@fp.StartDate - @fp.EndDate)</span>
                            }
                        }
                        &nbsp;&nbsp;&nbsp;&nbsp;
                        <strong>项目名称</strong>&nbsp;&nbsp;
                        @{
                            if(project!=null)
                            {
                                <span>@(project.ProjectName)(@project.ProjectCode)</span>
                            }
                        }
                    </td>
                    <td colspan="2" align="right">
                    <a href="/SummaryData/LongFeeExcel?year=@fp.Year&month=@fp.Month&projectId=@project.Id">导出Excel</a>
                    </td>
                </tr>
                <tr>
                    <td colspan="7">
                        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
                            <thead>
                                <tr bgcolor="#FBFCE2">
                                    <td height="30" width="5%"  align="center" rowspan="2">序号</td>
                                   <td width="10%" align="center" rowspan="2">
                                        姓名
                                    </td>
                                    <td width="30%" align="center" colspan="2">
                                        行程
                                    </td>
                                    <td width="15%" align="center" rowspan="2">
                                        日期
                                    </td>
                                    <td width="10%" align="center" rowspan="2">
                                        出差天数
                                    </td>
                                    <td width="10%" align="center" rowspan="2">
                                        交通工具
                                    </td>
                                    <td width="10%" align="center" rowspan="2">
                                        在途费用
                                    </td>
                                    <td width="10%" align="center" rowspan="2">
                                        发票数
                                    </td>
                                     
                                </tr>
                                <tr bgcolor="#FBFCE2">
                                <td width="15%" align="center">
                                    起
                                </td>
                                <td width="15%" align="center">
                                    止
                                </td>
                        </tr>
                            </thead>
                            <tbody>
                             @Html.Raw(ViewBag.dataStr)
                            </tbody>
                            <tfoot>
                                <tr bgcolor="#FBFCE2" align="center" class="hover"> 
                        <td width="15%" align="center" colspan="2">
                            合计
                        </td>
                        <td width="15%">
                            &nbsp;
                        </td>
                        <td width="15%">
                            &nbsp;
                        </td>
                        <td width="10%">
                            &nbsp;
                        </td>
                        <td width="10%" align="center">
                         
                                 <span name="stotaldays" id="stotaldays" value="0">@longfee.TotalDays</span>
                           
                        </td>
                        <td width="10%">
                            &nbsp;
                        </td>
                        <td width="10%" align="center">
                        <span name="stotalfee" id="stotalfee" value="">@longfee.TotalFee</span>
                            
                        </td>
                        <td width="10%" align="center">
                          
                                 <span name="stotalcount" id="stotalcount" value="">@longfee.InvoiceCount</span>
                             
                        </td>
                         
                    </tr> 
                                <tr bgcolor="#FFFFFF" align="center" class="hover">
                    <td align="left" colspan="12">
                        <b><font style="color: red">说明：本表作为每月报销差旅费附件。</font></b>
                    </td>
                </tr>
                            </tfoot>
                        </table>
                    </td>
                </tr>
                
            </table>
        </td>
    </tr>
</table>

